package cn.iocoder.yudao.module.hs.controller.admin.warehouse.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 仓库信息新增/修改 Request VO")
@Data
public class WarehouseSaveReqVO {

    @Schema(description = "仓库主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "24580")
    private Long id;

    @Schema(description = "仓库编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "仓库编号不能为空")
    private String code;

    @Schema(description = "仓库名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "仓库名称不能为空")
    private String name;

    @Schema(description = "地区编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "28980")
    @NotNull(message = "地区编号不能为空")
    private Integer areaId;

    @Schema(description = "是否需要先进先出", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否需要先进先出不能为空")
    private Boolean firstInOut;

    @Schema(description = "是否有待出库区", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否有待出库区不能为空")
    private Boolean haveWaitingArea;

    @Schema(description = "分类", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "分类不能为空")
    private String warehouseType;

    @Schema(description = "仓库所在经纬度")
    @NotNull(message = "仓库所在经纬度不能为空")
    private String longitudeLatitude;

    @Schema(description = "部门ID")
    private Long deptId;
}
